package org.jrazdacha.bittorrent.modelling.core;

public class ConnectionState {
	public final static ConnectionState DISCONNECTED = new ConnectionState("DISCONNECTED");
	public final static ConnectionState HANDSHAKE_SENDED = new ConnectionState("HANDSHAKE_WAS_SEND");
	public final static ConnectionState HANDSHAKE_REPLY_ARRIVED = new ConnectionState("HANDSHAKE_REPLY_ARRIVED");
	public final static ConnectionState BITFIELD_SEND = new ConnectionState("BITFIELD_SEND");
	public static final ConnectionState ESTABLISHED = new ConnectionState("ESTABLISHED");
	public static final ConnectionState RECEIVED_HANDSHAKE = new ConnectionState("RECEIVED_HANDSHAKE");
	public static final ConnectionState REPLY_HANDSHAKE_SENDED = new ConnectionState("REPLY_HANDSHAKE_WAS_SEND");
	public static final ConnectionState BITFIELD_RECEIVED = new ConnectionState("BITFIELD_RECEIVED");	
	
	private final String name;	

	private ConnectionState(String name) {
		this.name = name;	
	}

	@Override
	public String toString() {
		return name;
	}
	
	
}
